package com.ym.domain.task;

import com.ym.domain.service.MedisBizService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class SchedulingTask {

    @Autowired
    MedisBizService mydisBizService;

    // 清空缓存过期时间的数据
    @Scheduled(cron = "0 0 0/1 * * ?")
    public void clearExpiredKey() {
        mydisBizService.clearExpiredKey();
    }



}
